package com.lggry.array.variable;

public class VariableDemo {
    public static void main(String[] args) {
        //目标：认识变量
        printVariable();
    }
    //定义一个方法,来学习变量的定义
    public static void printVariable() {
        //定义一个变量
        int a = 10;
        System.out.println(a);

        double b = 3.14;
        System.out.println(b);

        //我有9.9，花了3元，又收到5元
        double money = 9.9;
        money = money - 3;
        money = money + 5;
        System.out.println(money);

        //打印二进制
        char n = 'A';
        System.out.println(n+1);

        //程序中可以直接写进制数据
        int i1 = 0b01100001;
        System.out.println(i1);
    }
}
